﻿namespace Probel.NDoctor.Statistics.Console
{
    using Probel.NDoctor.Statistics.Console.Commands;
    using Probel.NDoctor.Statistics.Console.Menus;
    using Probel.NDoctor.Statistics.Loggers;

    class Program
    {
        #region Methods

        static void Main(string[] args)
        {
            LoggingService.Configure(new EmptyLogger());
            var msg = "Select your menu (<ENTER> to previous)";
            var menuMongo = new Menu(msg);

            var menuMySql = new Menu(msg);
            menuMySql.Add(new MySqlConfigureCommand(), "Configure MySql client");
            menuMySql.Add(new MySqlShowconfig(), "Show MySql configuration");
            menuMySql.Add(new MySqlGetStatCommand(), "Get statistics overview");

            var menu = new Menu("Select your menu ('<ENTER> to leave):");
            menu.Add(menuMongo, "Mongo");
            menu.Add(menuMySql, "MySql");
            menu.Execute();
        }

        #endregion Methods
    }
}